<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
    <title>查询申请记录</title>
</head>

<body>
    <c:if test="${not empty message}">
        <div id="message" class="alert alert-success"><button data-dismiss="alert" class="close">×</button>${message}</div>
    </c:if>

    <table id="contentTable" class="table table-striped table-bordered table-condensed">
        <thead><tr><th width="20%">姓名</th><th width="20%">标签</th><th width="5%">性别</th><th width="5%">年龄</th><th width="5%">学历</th><th width="10%">工作年限</th><th width="20%">职能</th><th width="15%">申请日期</th></tr></thead>
        <tbody>
        <c:forEach items="${applications.content}" var="application">
            <tr>
                <td><a href="${ctx}/hr/position/${application.position.id}/cv/${application.cvLang.id}">${application.memberUser.name}</a></td>
                <td></td>
                <td>${application.memberUser.genderName}</td>
                <td>${application.memberUser.age}</td>
                <td>${application.cvLang.degreeName}</td>
                <td>${application.memberUser.workingYearsName}</td>
                <td></td>
                <td><fmt:formatDate value="${application.createDate}" pattern="yyyy-MM-dd" /></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>

    <tags:pagination page="${applications}" paginationSize="20"/>

    <div><a class="btn" href="${ctx}/hr/position">返回</a></div>
</body>
</html>
